<link rel="stylesheet" type="text/css" href="catalog/view/javascript/nivo-slider/nivo-slider.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/nivo-slider/style.css" />

<script language="javascript" type="text/javascript" src="catalog/view/javascript/nivo-slider/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $('#slider1').nivoSlider({
		animSpeed:<?php echo $slide_velocity;?>, //Slide transition speed
        pauseTime:<?php echo $slide_duration;?>,
		effect:'sliceDown',
        directionNav:true, //Nawigacja
        directionNavHide:true, //Zanik nawigacji przy linkach
        controlNav:true
		});
    });
    </script>


<!------------------------------------- THE CONTENT ------------------------------------------------->
    <div id="wrapper" style="width:<?php echo $slide_size?>px; height:<?php echo $slide_height;?>px; margin-bottom:15px;padding:5px;">
    
         <div id="slider-wrapper" class="slider-wrapper" style="width:<?php echo $slide_size;?>px; height:<?php echo $slide_height;?>px;">
        
            <div id="slider1" class="nivoSlider" style="width:<?php echo $slide_size;?>px; height:<?php echo $slide_height;?>px;">
			
	<?php foreach($ccpos_config as $pos){?>
	
	<a href="<?php echo $pos['urls'];?>"><img style="width:<?php echo $slide_size;?>px; height:<?php echo $slide_height;?>px;" src="<?php echo $pos['img'];?>" alt=""  <?php if($slide_headline==1){?>title="#htmlcaption_<?php echo $pos['sira'];?>"<?php } ?> /></a>
 
		<?php } ?>
		 </div>
		 <?php if($slide_headline==1){?>
		 <?php foreach($ccpos_config as $pos){?>
               		<?php if(!empty($pos['paragraf']) || !empty($pos['h2']) || !empty($pos['h3link']) || !empty($pos['span_i'])){?>
		                <div id="htmlcaption_<?php echo $pos['sira'];?>" class="nivo-html-caption" style="width:<?php echo $slide_size;?>px;">
		                <?php if(!empty($pos['span_i']) || !empty($pos['h3link'])){?>
		                <h3><a target="_parent" title="<?php echo $pos['h3link']?>" href="<?php echo $pos['urls'];?>"><?php echo $pos['h3link']?></a> <i><?php echo $pos['span_i'];?></i></h3>
						<?php }?>
						<?php if(!empty( $pos['h2'])){?>
						<h2><?php echo $pos['h2'];?></h2>
		                <?php }?>
		                
		                <?php if(!empty($pos['paragraf'])){?>
			                <p><?php echo $pos['paragraf'];?>
			                <a class="readmore" href="<?php echo $pos['urls'];?>">więcej</a>
			                </p>
		                <?php }?>
						</div>
					<?php }?>
           <?php } }?>
        
        
    </div>
 		
    </div>

<!------------------------------------- END OF THE CONTENT -----------------------------------------------
 -->
